cmake_minimum_required(VERSION 3.16)

add_subdirectory(Log)
add_subdirectory(Double)
add_subdirectory(RandomNumber)

obtain_git_version(gitVersion ${CMAKE_CURRENT_SOURCE_DIR})
project(BasicHeadersOfRoutesRelatedProblems VERSION ${gitVersion}
        DESCRIPTION "Common headers for route-related problems"
        LANGUAGES CXX)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include(SetProblemType)
include(SetRunMode)
include(AddMacroDefinition)

add_directory_of_project(DIR SRC TEST)

if ("^${CMAKE_SOURCE_DIR}" STREQUAL "^${PROJECT_SOURCE_DIR}")
    set_problem_type(MDVRP)
endif()